package com.chinaums.fsp.sdk.request;

import org.xiajinsuo.avro.specific.SpecificRecordBase;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.OrganizationRegQueryRequest;
import com.chinaums.fsp.sdk.pgt.params.OrganizationRegQueryResponse;
/**
 * 机构开户审核情况查询
 * @author hhh
 */
public class OrganizationRegQueryTest extends BaseRequest{

	public void testOrganizationQueryRequest() throws Exception {
		
		PgtRequestFactory rf = FACTORY.factory();
		
		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.ORGANIZATION_REGISTER_QUERY.getTransCode());
		
		OrganizationRegQueryRequest data = OrganizationRegQueryRequest.newBuilder()
																		.setOrgName("票管通买家001")
																		.setBusinessLicenseNo("5114239338018608")
																		.build()
																		;
		rf.transType(TransType.ORGANIZATION_REGISTER_QUERY.getTransCode())
		.responseClass(OrganizationRegQueryResponse.class)
		.data(data)
		;
		ResponseDataWrapper rdw = rf.post();
	
		this.print(rdw);
	}
	
}